<!--添加第一个css-->
<script ng-init="OneCss('addBook-page/css/addBook.css')"></script>
<!--添加第二个css（不管有没有）-->
<script ng-init="TwoCss('')"></script>

<div class="row clearfix">
    <div class="col-md-12 column content">
        <label class="page-header">
            <h1>图书上传
                <label class="dropdown">
                    <button type="button" class="btn dropdown-toggle" id="dropdownMenu1"
                            data-toggle="dropdown">
                        类别
                        <span class="caret"></span>
                    </button>
                    <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
                        <li role="presentation" ng-click="gtecategory($event)" ng-repeat=" type in bookCategory">
                            <a role="menuitem" tabindex="-1" id="{{type.categoryId}}" href="javascript:">{{type.categoryName}}</a>
                        </li>

                    </ul>
                </label>
            </h1>
        </label>

    </div>

    <form role="form">


        <div class="form-group">
            <label for="exampleInputEmail3">书名</label><input type="text" ng-model="bookname" class="form-control"
                                                             id="exampleInputEmail3"/>
        </div>
        <div class="form-group">
            <label>简介</label>
            <textarea class="form-control" ng-model="bookInfo" rows="5"></textarea>
        </div>
        <div class="col-md-4 column">
            <div class="form-group">
                <label for="exampleInputEmail4">有多少本</label><input ng-model="bookNum" type="number" class="form-control"
                                                                   id="exampleInputEmail4"/>
            </div>
        </div>
        <div class="col-md-4 column">
            <div class="form-group">
                <label for="exampleInputEmail5">可以借多久(天)</label><input type="number" ng-model="bookday"
                                                                       class="form-control"
                                                                       id="exampleInputEmail5"/>
            </div>
        </div>
        <div class="col-md-4 column">
            <div class="form-group">
                <label for="exampleInputEmail6">存放位置</label><input type="text" ng-model="bookaddress"
                                                                   class="form-control"
                                                                   id="exampleInputEmail6"/>
            </div>
        </div>
        <div class="form-group">
            <img id="pic" src="">
            <label for="exampleInputFile"></label>
            <input type="file" id="one-input" accept="image/jpg,image/jpeg,image/png" file-model="images"
                   id="exampleInputFile" type="file"
                   onchange="angular.element(this).scope().img_upload(this.files)"/>

            <p class="help-block">

            </p>
        </div>
        <div class="checkbox">

        </div>
        <button type="submit"  ng-click="postBook()" class="btn btn-default">添加
        </button>
    </form>

</div>




